package com.dhcc.bpm.alarm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xiafayu
 * @since 2022-02-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ALARM_DB_INFO_CONFIG")
@ApiModel(value="AlarmDbInfoConfig对象", description="数据库链接地址参数表")
public class AlarmDbInfoConfig implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(
            value = "ID",
            type = IdType.ASSIGN_ID
    )
    @JsonSerialize(
            using = ToStringSerializer.class,
            nullsUsing = NullSerializer.class
    )
    private Long id;

    @ApiModelProperty(value = "产品代码")
    private String prdtCode;

    @ApiModelProperty(value = "渠道编号/预警编号")
    @TableField("CHANNEL_NO")
    private String channelNo;

    @ApiModelProperty(value = "db服务器IP")
    @TableField("DB_IP")
    private String dbIp;

    @ApiModelProperty(value = "db服务器端口")
    @TableField("DB_PORT")
    private String dbPort;

    @ApiModelProperty(value = "用户名称")
    @TableField("DB_USER")
    private String dbUser;

    @ApiModelProperty(value = "密码")
    @TableField("DB_PSWD")
    private String dbPswd;

    @ApiModelProperty(value = "是否数据库密码加密")
    @TableField("DB_DECRYPT")
    private String dbDecrypt;

    @ApiModelProperty(value = "Db实例名")
    @TableField("DB_INSTANCE")
    private String dbInstance;

    @ApiModelProperty(value = "数据库类型")
    @TableField("DBTYPE")
    private String dbtype;

    @ApiModelProperty(value = "是否启用0停用1启用")
    @TableField("IENABLE")
    private String ienable;

    @ApiModelProperty(value = "数据库驱动")
    @TableField("DRIVER")
    private String driver;

    @ApiModelProperty(value = "数据库连接URL")
    @TableField("URL")
    private String url;

    @ApiModelProperty(value = "备注1")
    @TableField("FILE1")
    private String file1;

    @ApiModelProperty(value = "备用2")
    @TableField("FILE2")
    private String file2;

    @ApiModelProperty(value = "备注3")
    @TableField("FILE3")
    private String file3;


}
